﻿namespace Iesi.Collections.Generic
{
    using System;
    using System.Collections;
    using System.Collections.Generic;

    [Serializable]
    public class SortedSet<T> : DictionarySet<T>
    {
        public SortedSet()
        {
            base.InternalDictionary = new SortedDictionary<T, object>();
        }

        public SortedSet(ICollection<T> initialValues) : this()
        {
            this.AddAll(initialValues);
        }

        public SortedSet(IComparer<T> comparer)
        {
            base.InternalDictionary = new SortedList<T, object>(comparer);
        }

        //public SortedSet(ICollection<T> initialValues)
        //    : this()
        //{
        //    this.AddAll(initialValues);
        //}

        public SortedSet(ICollection<T> initialValues, IComparer<T> comparer) : this(comparer)
        {
            this.AddAll(initialValues);
        }
    }
}

